|
|
|
|
Samples |
SftTree/NET includes sample code for both VB.NET and C#. Even though C++ samples are not included, the Syntax section always shows the C++ syntax.
All sample code given in the Example section of a property, method or event applies to Visual Basic and C# unless noted. The code samples usually assume that a tree control has been added to a form. All relevant properties, even properties that could be set at design-time using the Properties window, are set at run-time to show any dependencies.
The following samples can be found in the folder C:\Program Files\Softelvdm\SftTree NET 2.0\Samples:
VB Sample |
C# Sample |
Description |
Shows an overview of the tree control's features. |
||
Demonstrates copying/moving items within the same and between two tree controls using drag & drop. |
||
Inspects events generated by the tree control. |
||
Shows dynamic loading ("load as you go") of the tree control. |
||
Shows options using checkboxes and radiobuttons, created using an XML document. |
These samples are referenced throughout our help topics:
VB Sample |
C# Sample |
Description |
Demonstrates vertical and horizontal cell merging (MergeStyle = EmptyCells), cell images, rotated text in row headers and column headers. |
||
Demonstrates vertical and horizontal cell merging (MergeStyle = SameText). |
||
Demonstrates cell editing with edit controls and combo boxes. |
||
Shows how to implement a simple toolbox-like category list. |
||
Demonstrates drag & drop within the tree control, dragging data to a textbox and dropping data on the tree control from Windows Explorer. |
||
Demonstrates how to add the various parts to cells, like checkboxes, images, progressbars, buttons, dropdown buttons, how to handle events and cell orientation. |
||
Demonstrates how to add items and child items, with checkboxes and radiobuttons. |
||
Demonstrates cell images, cell tags, column reordering, sorting and sorting indicators in column headers. |